package com.csnf.hymall.entity;

import java.io.Serializable;

/**
 * 订单项实体类
 * @author 好有经验
 */
public class ProductOrderItem implements Serializable {
    private Integer productOrderItem_id/*订单项ID*/;
    private Short productOrderItem_number/*订单项产品数量*/;
    private Double productOrderItem_price/*订单项产品总价格*/;
    private String productOrderItem_userMessage/*订单项备注*/;
    private Integer productOrderItem_product_id;
    private Integer productOrderItem_order_id/*订单项对应订单*/;
    private Integer productOrderItem_user_id/*订单项对应用户*/;

    private Product orderItemProduct/*订单项对应产品*/;
    private ProductOrder orderItemOrder/*订单项对应订单*/;
    private User orderItemUser/*订单项对应用户*/;

    //订单产品是否已经评价
    private Boolean isReview;

    public ProductOrderItem() {
    }

    public ProductOrderItem(Integer productOrderItem_id, Short productOrderItem_number, Double productOrderItem_price, String productOrderItem_userMessage, Integer productOrderItem_product_id, Integer productOrderItem_order_id, Integer productOrderItem_user_id, Boolean isReview) {
        this.productOrderItem_id = productOrderItem_id;
        this.productOrderItem_number = productOrderItem_number;
        this.productOrderItem_price = productOrderItem_price;
        this.productOrderItem_userMessage = productOrderItem_userMessage;
        this.productOrderItem_product_id = productOrderItem_product_id;
        this.productOrderItem_order_id = productOrderItem_order_id;
        this.productOrderItem_user_id = productOrderItem_user_id;
        this.isReview = isReview;
    }

    public Integer getProductOrderItem_id() {
        return productOrderItem_id;
    }

    public ProductOrderItem setProductOrderItem_id(Integer productOrderItem_id) {
        this.productOrderItem_id = productOrderItem_id;
        return this;
    }

    public Short getProductOrderItem_number() {
        return productOrderItem_number;
    }

    public ProductOrderItem setProductOrderItem_number(Short productOrderItem_number) {
        this.productOrderItem_number = productOrderItem_number;
        return this;
    }

    public Double getProductOrderItem_price() {
        return productOrderItem_price;
    }

    public ProductOrderItem setProductOrderItem_price(Double productOrderItem_price) {
        this.productOrderItem_price = productOrderItem_price;
        return this;
    }

    public Integer getProductOrderItem_product_id() {
        return productOrderItem_product_id;
    }

    public ProductOrderItem setProductOrderItem_product_id(Integer productOrderItem_product_id) {
        this.productOrderItem_product_id = productOrderItem_product_id;
        return this;
    }

    public Integer getProductOrderItem_order_id() {
        return productOrderItem_order_id;
    }

    public ProductOrderItem setProductOrderItem_order_id(Integer productOrderItem_order_id) {
        this.productOrderItem_order_id = productOrderItem_order_id;
        return this;
    }

    public Integer getProductOrderItem_user_id() {
        return productOrderItem_user_id;
    }

    public ProductOrderItem setProductOrderItem_user_id(Integer productOrderItem_user_id) {
        this.productOrderItem_user_id = productOrderItem_user_id;
        return this;
    }

    public String getProductOrderItem_userMessage() {
        return productOrderItem_userMessage;
    }

    public ProductOrderItem setProductOrderItem_userMessage(String productOrderItem_userMessage) {
        this.productOrderItem_userMessage = productOrderItem_userMessage;
        return this;
    }

    public Boolean getIsReview() {
        return isReview;
    }

    public ProductOrderItem setIsReview(Boolean review) {
        isReview = review;
        return this;
    }

    public Product getOrderItemProduct() {
        return orderItemProduct;
    }

    public ProductOrderItem setOrderItemProduct(Product orderItemProduct) {
        this.orderItemProduct = orderItemProduct;
        return this;
    }

    public ProductOrder getOrderItemOrder() {
        return orderItemOrder;
    }

    public ProductOrderItem setOrderItemOrder(ProductOrder orderItemOrder) {
        this.orderItemOrder = orderItemOrder;
        return this;
    }

    public User getOrderItemUser() {
        return orderItemUser;
    }

    public ProductOrderItem setOrderItemUser(User orderItemUser) {
        this.orderItemUser = orderItemUser;
        return this;
    }
}
